//
//  SNView.swift
//  SNComponet
//
//  Created by shaofeng on 2017/8/8.
//  Copyright © 2017年 shaofeng. All rights reserved.
//

import UIKit

class SNView: UIView {
    
    override open func point(inside point: CGPoint, with event: UIEvent?) -> Bool {
        let touchAreaInsets = self.touchAreaInsets;
        var bounds = self.bounds;
        bounds = CGRect(x: bounds.origin.x - touchAreaInsets.left, y: bounds.origin.y - touchAreaInsets.top, width: bounds.size.width + touchAreaInsets.left + touchAreaInsets.right, height: bounds.size.height + touchAreaInsets.top + touchAreaInsets.bottom);
        return bounds.contains(point);
    }
}
